package com.supplychainapi.domain;

import com.supplychainapi.model.ScmTbmaterial;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Table;
import javax.persistence.Transient;
import java.util.List;

/**
 *
 * 分类树表
 * @author:xiezhiwei
 * @email:xiezhiwei@niwodai.net
 * @date:2017-09-26
 *
 */
@Table(name="scm_tbtreebuild")
@ApiModel("分类表")
public class TbtreebuildParam {

	@ApiModelProperty(value = "节点编号;分类编号")
	private String fsNodeCode;
	
	@ApiModelProperty(value = "分类树类型代码;Material/Supplier/Cust")
    private String fsTreeTypeId;

	@ApiModelProperty(value = "店铺GUID")
    private String fsShopGUID;
	
	@ApiModelProperty(value = "节点内容;分类名称")
    private String fsNodeText;
	
	@ApiModelProperty(value = "节点等级")
    private Short fdNodeLevel;
	

	@ApiModelProperty(value = "节点类别;class=分类节点/filter=过滤节点")
    private String fsNodeCls;

	@ApiModelProperty(value = "父节点码")
    private String fdParentNodeCode;
	
	@ApiModelProperty(value = "顺序")
    private Short fiSort;

	@ApiModelProperty(value = "数据状态;1=正常/9=禁用")
    private Short fiStatus;


    @Transient
    @ApiModelProperty(value = "子节点信息")
    private List<TbtreebuildParam> scmTbtreebuildList;



    @Transient
    //@ApiModelProperty("物料信息")
    @ApiModelProperty(hidden = true)
    private List<ScmTbmaterial> tbmaterials;


    public List<ScmTbmaterial> getTbmaterials() {
        return tbmaterials;
    }

    public void setTbmaterials(List<ScmTbmaterial> tbmaterials) {
        this.tbmaterials = tbmaterials;
    }

    public String getFsNodeCode() {
        return fsNodeCode;

    }

    public void setFsNodeCode(String fsNodeCode) {
        this.fsNodeCode = fsNodeCode == null ? null : fsNodeCode.trim();
    }

    public String getFsTreeTypeId() {
        return fsTreeTypeId;
    }







    public void setFsTreeTypeId(String fsTreeTypeId) {
        this.fsTreeTypeId = fsTreeTypeId == null ? null : fsTreeTypeId.trim();
    }

    public String getFsShopGUID() {
        return fsShopGUID;
    }

    public void setFsShopGUID(String fsShopGUID) {
        this.fsShopGUID = fsShopGUID == null ? null : fsShopGUID.trim();
    }

    public String getFsNodeText() {
        return fsNodeText;
    }

    public void setFsNodeText(String fsNodeText) {
        this.fsNodeText = fsNodeText == null ? null : fsNodeText.trim();
    }

    public Short getFdNodeLevel() {
        return fdNodeLevel;
    }

    public void setFdNodeLevel(Short fdNodeLevel) {
        this.fdNodeLevel = fdNodeLevel;
    }

    public String getFsNodeCls() {
        return fsNodeCls;
    }

    public void setFsNodeCls(String fsNodeCls) {
        this.fsNodeCls = fsNodeCls == null ? null : fsNodeCls.trim();
    }

    public String getFdParentNodeCode() {
        return fdParentNodeCode;
    }

    public void setFdParentNodeCode(String fdParentNodeCode) {
        this.fdParentNodeCode = fdParentNodeCode == null ? null : fdParentNodeCode.trim();
    }

    public Short getFiSort() {
        return fiSort;
    }

    public void setFiSort(Short fiSort) {
        this.fiSort = fiSort;
    }

    public Short getFiStatus() {
        return fiStatus;
    }

    public void setFiStatus(Short fiStatus) {
        this.fiStatus = fiStatus;
    }

    public List<TbtreebuildParam> getScmTbtreebuildList() {
        return scmTbtreebuildList;
    }

    public void setScmTbtreebuildList(List<TbtreebuildParam> scmTbtreebuildList) {
        this.scmTbtreebuildList = scmTbtreebuildList;
    }

}